import { TypedUseSelectorHook, useDispatch, useSelector } from "react-redux"
import type { IRootState, IAppDispatch } from "@/store/index"

/** Use throughout your app instead of plain `useDispatch` */
export const useAppDispatch = () => useDispatch<IAppDispatch>()
/** Use throughout your app instead of plain `useSelector` */
export const useAppSelector: TypedUseSelectorHook<IRootState> = useSelector
